 

package com.zdkj.subway.stm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zdkj.subway.stm.dto.out.SwStStockDTO;
import com.zdkj.subway.stm.entity.SwStStock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author songtuo
 * @date 2020-07-14 11:52:58
 */
@Mapper
public interface SwStStockMapper extends BaseMapper<SwStStock> {

    /**
     * 统计各线路各站点每日的数据
     * @param dateString
     * @return
     */
    List<SwStStockDTO> calcData(@Param("dateString") String dateString);

    List<SwStStock> getSwStStockByParam(@Param("param") Map<String, String> param);
    IPage<List<SwStStock>> getSwStStockPage(@Param("page") Page page, @Param("lineCode") String lineCode, @Param("stationCode") String stationCode, @Param("statisticsDate") String statisticsDate);

    String getCheckDay();
    //IPage<List<SwStStock>> getSwStStockPage(@Param("page") Page page, SwStStock swStStock);
}
